package finalproject.shared;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Absentie implements Serializable {

	private static final long serialVersionUID = 1L;
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long absentieNr;
	@Persistent
	private Long studentNr;
	@Persistent
	private Long vakNr;
	@Persistent
	private String datum; 
	@Persistent
	private String reden;
	
	public Absentie() {
		super();
	}

	public Absentie(String datum, String reden) {
		super();
		this.datum = datum;
		this.reden = reden;
	}

	public Long getAbsentieNr() {
		return absentieNr;
	}

	public void setAbsentieNr(Long absentieNr) {
		this.absentieNr = absentieNr;
	}

	public Long getStudentNr() {
		return studentNr;
	}

	public void setStudentNr(Long studentNr) {
		this.studentNr = studentNr;
	}
	
	public Long getVakNr() {
		return vakNr;
	}

	public void setVakNr(Long vakNr) {
		this.vakNr = vakNr;
	}
	
	public String getDatum() {
		return datum;
	}

	public void setDatum(String datum) {
		this.datum = datum;
	}

	public String getReden() {
		return reden;
	}

	public void setReden(String reden) {
		this.reden = reden;
	}

	
}

